package com.zhongge.comparerelevant.comparator;

/**
 * @ClassName Student
 * @Description TODO
 * @Author zhongge
 * @Version 1.0
 */
public class Student {
    private String name;//学生姓名
    private int age;//学生年龄

    //使用快捷键生成构造函数和toString方法
    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
